.PHONY: clean  default

SRC_FILES = test0.cpp test1.cpp
EXEC_FILES = $(SRC_FILES:.cpp=)

CC = g++
CFLAGS += -Wall
CFLAGS += $(shell pkg-config fuse --cflags)
CFLAGS += $(shell pkg-config libpqxx --cflags)

LDFLAGS += $(shell pkg-config fuse --libs)
LDFLAGS += $(shell pkg-config libpqxx --libs)

default: $(EXEC_FILES)

.cpp:	
	$(CC) $(CFLAGS) -I".." $@.cpp $(LDFLAGS) -o $@ ../query.o ../pool.o ../config.o ../logger.o

clean:
	rm -f *.o 
	rm -f $(EXEC_FILES)
